from random import randint as rnd
Num = int(input())
count = 0
for i in range(Num):
    x = rnd(-100, 100)
    y = rnd(-100, 100)
    if 5 >= x >= -7 and -8 <= y <= 5:
        count = count + 1

print("Количество выстрелов:", Num)
print("Количество попаданий:", count)
